package com.songlanyun.modules.ad.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.ad.entity.AdEntity;

import java.util.List;
import java.util.Map;

/**
 * 广告表
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-11 13:55:19
 */
public interface AdService extends IService<AdEntity> {

    PageUtils queryPage(Map<String, Object> params);

    AdEntity getInfo(Integer id);

    List<AdEntity> getShopAd(Map<String, Object> params, Long shopId);

    List<AdEntity> getShopAdByAdL(Long shopId, String markCode);

    AdEntity getById(Integer id, boolean isThrow);

    int countByMarkCode(String markCode);

    List<AdEntity> adList(Map<String, Object> params);
}

